home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000136_news@newsmaster….columbia.edu _Fri Jan 30 09:20:44 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA08538
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 30 Jan 1998 09:20:43 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA06423
  7.     for kermit.misc@watsun; Fri, 30 Jan 1998 09:20:42 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Local Printing in Kermit 95
  12. Date: 30 Jan 1998 14:20:41 GMT
  13. Organization: Columbia University
  14. Lines: 68
  15. Message-ID: <6asnjp$2v0$1@apakabar.cc.columbia.edu>
  16. References: <6as2jp$5it$1@trog.dra.hmg.gb>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8319
  19.  
  20. In article <6as2jp$5it$1@trog.dra.hmg.gb>,
  21. Doug Pickering <djpickering@dera.gov.uk> wrote:
  22. : I have a slight problem with an application using the local printing
  23. : facility.
  24. : A VMS job allows a user to print a VMS file directly to a laserjet printer
  25. : attached to a users' PC via local printing.  The job starts by switching
  26. : to local printing then sending some initialisation characters to the
  27. : printer to switch it to landscape and change the font.
  28. : The job then starts to print lines of the output to the printer which all
  29. : goes well until after every 100 lines of output the print job is
  30. : interrupted to display how many lines have been processed.
  31. : The effect of the status display is to end the print job and send it
  32. : straight to the printer.  The next portion of the job is then queued as a
  33. : separate job, without the page formatting and often in the middle of the
  34. : page.
  35. : I have looked at the possibility of removing the status display and also
  36. : the possibility of it breaking on page boundaries and re-initialising the
  37. : printer.  Both these solutions have undesirable drawbacks.
  38. : The reason the status display is on the screen is because a piece of
  39. : software checks for screen activity and if none is found within a preset
  40. : time the user is disconnected.  This was happening regularly and so the
  41. : status line was put in.  Up until now all the users have been using DOS
  42. : but the move to NT is causing problems.
  43. The best way to get a diagnosis, and hopefully a solution, is to collect
  44. a session log that demonstrates the problem, and send it to:
  45.  
  46.   kermit-support@columbia.edu
  47.  
  48. However, I can hazard a guess without the log.  Assuming you are using VT
  49. terminal emulation, host directed printing works in a very simple way:
  50. there is one escape sequence to start printing, and another to stop, period,
  51. as described on pages 54-55 of the Kermit 95 manual.
  52.  
  53. So what should Kermit do when it receives the "stop printing" sequence?  If
  54. this were a real terminal, there would not be any question -- it would
  55. simply stop printing, because the printer is connected to the terminal
  56. directly with a wire.  Sending a character to the printer causes the
  57. character to be printed immediately (recall that VT printing was designed
  58. for dot-matrix printers, which, unlike laser printers, print a character at
  59. a time, not a page at a time).
  60.  
  61. But in Windows matters are a bit murkier, because we are going through
  62. who-knows-how-many layers of printer drivers, spoolers, buffers, etc, and
  63. possibly also accessing the printer through a network.  So if Kermit simply
  64. stopped printing, then what would make the page come out of the printer?  So
  65. Kermit must "close" the print job when it gets a "stop printing" command.
  66. What happens when Kermit closes the printer depends entirely upon the
  67. printer driver, spooler, etc -- items that are invisible to Kermit and
  68. beyond its control, but perhaps configurable by you.
  69.  
  70. : I am informed that KEATerm does not exhibit the same behaviour.
  71. But then how does it know when to print a page without manual intervention?
  72.  
  73. To get the behavior you want, there would need to be additional protocol
  74. in the escape sequences: one for "stop sending text to the printer but do
  75. not close it", and another for "close the printer and force out the page".
  76. There are no such commands in the VT terminal repertoire.
  77.  
  78. Anyway, let's have a look at the logs and we'll see what can be done.
  79.  
  80. - Frank